/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nivri
 */
@Entity
@Table(name = "citas_clientes")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CitasClientes.findAll", query = "SELECT c FROM CitasClientes c order by c.fechacita ,c.horainicio  , c.horafin asc"),
    @NamedQuery(name = "CitasClientes.findById", query = "SELECT c FROM CitasClientes c WHERE c.id = :id"),
    @NamedQuery(name = "CitasClientes.findByFkClientes", query = "SELECT c FROM CitasClientes c WHERE c.fkClientes = :fkClientes"),
    @NamedQuery(name = "CitasClientes.findByNombrecliente", query = "SELECT c FROM CitasClientes c WHERE c.nombrecliente = :nombrecliente"),
    @NamedQuery(name = "CitasClientes.findByFechacita", query = "SELECT c FROM CitasClientes c WHERE c.fechacita = :fechacita"),
    @NamedQuery(name = "CitasClientes.findByFechacitahorainifin", query = "SELECT c FROM CitasClientes c WHERE c.fechacita = :fechacita and c.horainicio = :horainicio and  c.horafin = :horafin and c.fkEstilista = :fkEstilista "),
    @NamedQuery(name = "CitasClientes.findByHorainicio", query = "SELECT c FROM CitasClientes c WHERE c.horainicio = :horainicio"),
    @NamedQuery(name = "CitasClientes.findByHorafin", query = "SELECT c FROM CitasClientes c WHERE c.horafin = :horafin"),
    @NamedQuery(name = "CitasClientes.findByFkEstilista", query = "SELECT c FROM CitasClientes c WHERE c.fkEstilista = :fkEstilista"),
    @NamedQuery(name = "CitasClientes.findBySepresentoono", query = "SELECT c FROM CitasClientes c WHERE c.sepresentoono = :sepresentoono")})
public class CitasClientes implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 36)
    @Column(name = "id")
    private String id;
    @Size(max = 36)
    @Column(name = "fk_clientes")
    private String fkClientes;
    @Size(max = 500)
    @Column(name = "nombrecliente")
    private String nombrecliente;
    @Lob
    @Size(max = 65535)
    @Column(name = "observaciones")
    private String observaciones;
    @Column(name = "fechacita")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechacita;
    @Column(name = "horainicio")
    @Temporal(TemporalType.TIMESTAMP)
    private Date horainicio;
    @Column(name = "horafin")
    @Temporal(TemporalType.TIMESTAMP)
    private Date horafin;
    @Size(max = 36)
    @Column(name = "fk_estilista")
    private String fkEstilista;
    @Size(max = 5)
    @Column(name = "sepresentoono")
    private String sepresentoono;

    public CitasClientes() {
    }

    public CitasClientes(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFkClientes() {
        return fkClientes;
    }

    public void setFkClientes(String fkClientes) {
        this.fkClientes = fkClientes;
    }

    public String getNombrecliente() {
        return nombrecliente;
    }

    public void setNombrecliente(String nombrecliente) {
        this.nombrecliente = nombrecliente;
    }

    public String getObservaciones() {
        return observaciones;
    }

    public void setObservaciones(String observaciones) {
        this.observaciones = observaciones;
    }

    public Date getFechacita() {
        return fechacita;
    }

    public void setFechacita(Date fechacita) {
        this.fechacita = fechacita;
    }

    public Date getHorainicio() {
        return horainicio;
    }

    public void setHorainicio(Date horainicio) {
        this.horainicio = horainicio;
    }

    public Date getHorafin() {
        return horafin;
    }

    public void setHorafin(Date horafin) {
        this.horafin = horafin;
    }

    public String getFkEstilista() {
        return fkEstilista;
    }

    public void setFkEstilista(String fkEstilista) {
        this.fkEstilista = fkEstilista;
    }

    public String getSepresentoono() {
        return sepresentoono;
    }

    public void setSepresentoono(String sepresentoono) {
        this.sepresentoono = sepresentoono;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CitasClientes)) {
            return false;
        }
        CitasClientes other = (CitasClientes) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.CitasClientes[ id=" + id + " ]";
    }
    
}
